import random,sys
f = open(sys.argv[2], "w")
for i in xrange(int(sys.argv[1])*1000):
	n = random.randint(0,5)
	print >>f, "%d,%d,%s" % (i + 1, n, "NO"*n) 